<%-- 
    Document   : tpsaverage-update
    Created on : 28 Jun 11, 13:10:08
    Author     : Bayu
--%>

<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <jsp:include page="includes/script.html"/>

        <title>Input</title>
    </head>

    <body>
        <center>
        <h2>Average Data Update</h2>
        <br>

        <form method="post">


            <c:forEach items="${data}" var="data">
            <table>
                <tr>

                    <td>Month</td>
                    <td>&nbsp:&nbsp;<fmt:formatDate pattern="MMM yyyy" value="${data.date}" /><input type="hidden" name="date" value="${data.date}"></td>
                </tr>
                <tr>
                        <td>A</td>
                        <td><input type="text" name="a" value="${data.a}"></td>

                    </tr>
                    <tr>
                        <td>B</td>
                        <td><input type="text" name="b" value="${data.b}"></td>
                    </tr>
                    <tr>
                        <td>C</td>
                        <td><input type="text" name="c" value="${data.c}"></td>
                    </tr>
                    <tr>
                        <td>D</td>
                        <td><input type="text" name="d" value="${data.d}"></td>
                    </tr>
                    <tr>
                        <td>E</td>
                        <td><input type="text" name="e" value="${data.e}"></td>
                    </tr>
                    <tr>
                        <td>F</td>
                        <td><input type="text" name="f" value="${data.f}"></td>
                    </tr>
                    <tr>
                        <td>G</td>
                        <td><input type="text" name="g" value="${data.g}"></td>
                    </tr>
                    <tr>
                        <td>H</td>
                        <td><input type="text" name="h" value="${data.h}"></td>
                    </tr>
                    <tr>
                        <td>I</td>
                        <td><input type="text" name="i" value="${data.i}"><input type="hidden" value="${data.type}" name="type"></td>
                    </tr>



                <tr>
                    <td colspan="2" align="right"><input  type="submit" name="submit" value="Save" ></td>
                </tr>
            </table>
            </c:forEach>
        </form>

</center>

    </body>
</html>
